#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Result/Nodal/NodalBase.h"

SG_DATASTRUCTURE_POST_NAMESPACE_OPEN

struct DISPLACEMENTData : public NodalBase
{
    SG::DataStructure::Common::Real m_X        = 0.0;  ///< X component
    SG::DataStructure::Common::Real m_Y        = 0.0;  ///< Y component
    SG::DataStructure::Common::Real m_Z        = 0.0;  ///< Z component
    SG::DataStructure::Common::Real m_RX       = 0.0;  ///< RX component
    SG::DataStructure::Common::Real m_RY       = 0.0;  ///< RY component
    SG::DataStructure::Common::Real m_RZ       = 0.0;  ///< RZ component
    SG::DataStructure::Common::Id   m_domainId = 0;    ///< Domain identifier
};

///< @brief 判断数据是否相等
DECLSPEC bool operator== (const DISPLACEMENTData& val1, const DISPLACEMENTData& val2);

SG_DATASTRUCTURE_POST_NAMESPACE_CLOSE
